package com.sanxiang.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sanxiang.entity.ManagerTable;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

//再对应的mapper上面实现基本的接口 BaseMapper
@Mapper
public interface ManagerTableMapper extends BaseMapper<ManagerTable> {
    //所有的CRUD都已经完成
    //不需要像以前一样配置一大堆文件：pojo-dao（连接mybatis，配置mapper.xml文件）==>service-controller
    // 查询用户名
    @Select("select manager_id,manager_password from manager_table where manager_name=#{managerName}")
    ManagerTable selectByName(String managerName);
}